/*
 * SWTIMERC1.h
 *
 *  Created on: 17/11/2012
 *      Author: Richard
 */

#ifndef SWTIMERC1_H_
#define SWTIMERC1_H_

#include "../../cdef.h"
#include "SWTIMERCE.h"

/* Timer interval ms */
#define SWTIM_nTimerInterval  HWTIM_nTimerInterval

/* Get timer tick value */
#define SWTIM_nGetTimerVal    HWTIM_u16GetCounterValue()

/* Clear timer tick value */
#define SWTIM_nClearTimerVal  HWTIM_vClearCounterValue()


bool SWTIM_boUpdateTimer( void );
void SWTIM_vReset( void );
void SWTIM_vTimerStart( SWTIM_tstTimer *timer );
void SWTIM_vTimerStop( SWTIM_tstTimer *timer );
bool SWTIM_boTimerStarted( SWTIM_tstTimer *timer );


#endif /* SWTIMERC1_H_ */
